﻿Partial Public Class LocalizedPage

    Private Sub ChangeAssembly_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
        Dim parent As DependencyObject = Me.Parent
        If parent IsNot Nothing Then
            If WPFGlue.Localization.Localization.GetResourceReferenceType(parent) Is Nothing Then
                WPFGlue.Localization.Localization.SetResourceReferenceType(parent, GetType(LocalizedResourceAssembly.Dummy))
            Else
                WPFGlue.Localization.Localization.SetResourceReferenceType(parent, Nothing)
            End If
        End If
    End Sub

End Class
